package com.imc.griebeler.visitor;

public class Rectangle implements Shape{

	private final int height;
	private final int width;
	
	public int getHeight() {
		return height;
	}

	public int getWidth() {
		return width;
	}

	public Rectangle(int height, int width) {
		this.height = height;
		this.width = width;
	}
	
	@Override
	public <T> T accept(ShapeVisitor<T> visitor) {
		return visitor.visit(this);
	}
}
